# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'aboutbox.ui'
#
# Created: So Aug 28 09:32:48 2005
#      by: The PyQt User Interface Compiler (pyuic) 3.13
#
# WARNING! All changes made in this file will be lost!


from qt import *


class aboutBox(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

        if not name:
            self.setName("aboutBox")


        aboutBoxLayout = QGridLayout(self,1,1,11,6,"aboutBoxLayout")

        self.groupBox1 = QGroupBox(self,"groupBox1")
        self.groupBox1.setColumnLayout(0,Qt.Vertical)
        self.groupBox1.layout().setSpacing(6)
        self.groupBox1.layout().setMargin(11)
        groupBox1Layout = QGridLayout(self.groupBox1.layout())
        groupBox1Layout.setAlignment(Qt.AlignTop)

        layout2 = QVBoxLayout(None,0,6,"layout2")

        self.textLabel2 = QLabel(self.groupBox1,"textLabel2")
        layout2.addWidget(self.textLabel2)

        layout1 = QHBoxLayout(None,0,6,"layout1")
        spacer1 = QSpacerItem(171,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout1.addItem(spacer1)

        self.pushButton1 = QPushButton(self.groupBox1,"pushButton1")
        layout1.addWidget(self.pushButton1)
        spacer2 = QSpacerItem(191,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout1.addItem(spacer2)
        layout2.addLayout(layout1)

        groupBox1Layout.addLayout(layout2,0,0)

        aboutBoxLayout.addWidget(self.groupBox1,0,0)

        self.languageChange()

        self.resize(QSize(721,486).expandedTo(self.minimumSizeHint()))
        #self.clearWState(Qt.WState_Polished)

        self.connect(self.pushButton1,SIGNAL("clicked()"),self.close)


    def languageChange(self):
        self.setCaption(self.__tr("About pyvLab"))
        self.groupBox1.setTitle(self.__tr("About pyvLab..."))
        self.textLabel2.setText(self.__tr("<h1><p align=\"center\">pyvLab</p></h1>\n"
"<br></br>\n"
"\n"
"pyvLab controls visatalking instruments, like Keithley 2000, 2400, Singalgenerators, etc..\n"
"<br>&nbsp;\n"
"<p></p>\n"
"\n"
"pyvLab is free software; you can redistribute it and/or modify it under the terms of the<p align=\"center\">GNU General Public License </p>\n"
"as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\n"
"pyvLab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \n"
"<p></p>\n"
"<b>See the GNU General Public License for more details (gpl.txt or http://www.gnu.org/licenses/gpl.html).</b>\n"
"<br>&nbsp;\n"
"<p></p>\n"
"pyvLab is based in part on the work of the Qwt project (http://qwt.sf.net), the pyVisa project (http://pyvisa.sf.net), \n"
"the python \"project\" (http://www.python.org) and some others. Thanks to them.\n"
"<br>&nbsp;\n"
"<p></p>\n"
"Much fun with it."))
        self.pushButton1.setText(self.__tr("OK"))


    def __tr(self,s,c = None):
        return qApp.translate("aboutBox",s,c)
